#用于模拟扑克牌的发牌过程。程序会随机将52张牌（不含大小王）发给4名牌手，并在屏幕上显示每位牌手的牌。
import random

# 定义扑克牌的花色和点数
suits = ['♠', '♥', '♦', '♣']
ranks = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A']

# 创建一副扑克牌
deck = [f'{rank}{suit}' for suit in suits for rank in ranks]

# 洗牌
random.shuffle(deck)

# 定义4名牌手
players = [[] for _ in range(4)]

# 发牌
for i in range(5):  # 每人发5张牌
    for player in players:
        card = deck.pop()  # 从牌堆中取出一张牌
        player.append(card)  # 将牌发给牌手

# 显示每位牌手的牌
for i, player in enumerate(players, start=1):
    print(f'牌手 {i} 的牌: {", ".join(player)}')
